package com.zwt.result;

/**
 * Created by zwt on 2018/9/6.
 * 统一返回结果对象
 */
public class ResultBean<T> {

    private Integer resultCode=ResultCode.FAIL.getCode();

    private String message;

    private T data;

    public ResultBean(Integer resultCode, String message, T data) {
        this.resultCode = resultCode;
        this.message = message;
        this.data = data;
    }

    public ResultBean(){

    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Integer getResultCode() {

        return resultCode;
    }

    public void setResultCode(Integer resultCode) {
        this.resultCode = resultCode;
    }
}
